package cn.wen.yinxiu.works.service;

import cn.wen.yinxiu.works.entity.VisitHistoryEntity;
import cn.wen.yinxiu.works.recommend.UserTopic;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.wen.yinxiu.common.toolkit.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @ClassName: VisitHistoryService
 * @Author 小飞
 * @Email coderwen22@163.com
 * @Date 2023-05-21 22:19:26
 * @Description:
 */
public interface VisitHistoryService extends IService<VisitHistoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取用户浏览记录数量
     *
     * @param userId
     * @return
     */
    Long queryUserVisitHistoryCount(Long userId);

    /**
     * 逻辑删除用户浏览记录
     *
     * @param userId
     * @return
     */
    boolean deleteWorksVisitHistory(Long userId);

    /**
     * 用户浏览记录的数据
     *
     * @param userId
     * @param pastDate
     * @return
     */
    List<UserTopic> queryUserVisitTopicByDate(Long userId, String pastDate);
}

